package com.lcredu.spring.component;


import com.lcredu.spring.annotation.*;

import java.util.Arrays;

/**
 * @author 黎长容
 * @date 2025-07-15 15:27
 * 这是一个切面类
 */
@Aspect
@Component
public class SmartAnimalAspect {

    @Before(value = "execution com.lcredu.spring.component.SmartDog getSum")
    public static void showBeginLog() {
        System.out.println("前置通知....");
    }

    @After(value = "execution com.lcredu.spring.component.SmartDog getSum")
    public static void showSuccessLog() {
        System.out.println("后置通知....");
    }
}
